package cn.wxxyhw.Util;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import javax.sql.DataSource;

/**
 * 数据库连接池
 * @Author: 洪稳
 * @Date: 2019/6/3
 */
public class DataSourceUtil {
    static DataSource dataSource ;
    static {
        dataSource = new ComboPooledDataSource();
    }
    public static DataSource getDataSource(){
        return dataSource;
    }
}
